package org.jsping.service.impl;

import java.util.List;

import org.jsping.dao.IHailFellowDao;
import org.jsping.dao.impl.HailFellowDaoImpl;
import org.jsping.entity.User;
import org.jsping.service.IHailFellowService;

import com.alibaba.fastjson.JSON;
import com.alibaba.fastjson.JSONArray;

public class HailFellowServiceImpl implements IHailFellowService {

	private IHailFellowDao hailFellowDao = new HailFellowDaoImpl();
	
	@Override
	public JSONArray getHailFellowList(int id) {
		
		List<User> list = hailFellowDao.getHailFellowList(id);
		
		return JSONArray.parseArray(JSON.toJSONString(list));
	}

}
